<?php
require_once(dirname(__FILE__)."/soap_array_base.class.php");
abstract class soap_array_of_uniform_chain_base extends soap_array_base 
{
    public function save_to_db($parent_id)
    {
         foreach($this->as_array() as $element){
            $temp = $element;
            $temp->parent_id = $parent_id;
            $temp->save_to_db();
        }
    }
}
?>